/*
*   url:请求地址
*   method:请求方式
* */
export default function(url,method,options){
    switch (method.toLowerCase()){
        case "get":
        case "delete":
            options.skuId && !url.includes(options.skuId)?url = url + `/${options.skuId}` :"";
            [1,0].includes(options.isChecked) ? url = url + `/${options.isChecked}` : "";
            options.phone ? url = url + `/${options.phone}` : "";
            options.token ? url = url + `/${options.token}` : "";
            break;
        case "put":
        case "post":
        case "patch":
            options.skuId ? url = url + `/${options.skuId}` :"";
            options.skuNum ? url = url + `/${options.skuNum}` : "";

    }
    return url

}